abstract  class  Water  {
abstract void  drink();
public abstract String toString();
}

//class  Nongfu  and  class  Wahaha
class Nongfu  extends  Water {
    @Override
    public  void  drink()  {
        System.out.print("I like Nongfu--My water is:");
    }
    @Override
    public String toString()  {
        System.out.println("Nongfu");
        return null;
    }
}
class  Wahaha  extends  Water {
    @Override
    public  void  drink()  {
        System.out.print("I like Wahaha--My water is:");
    }
    @Override
    public String toString()  {
        System.out.println("Wahaha");
        return null;
    }
}


public  class  WaterTest  {
    public  static  void  main(String[]  args)  {

        Water[]  wine  =  new  Water[2];
        wine[0]  =  new  Nongfu();
        wine[1]  =  new  Wahaha();
        for  (int  i  =  0;  i  <  wine.length;  i++)  {
            wine[i].drink();
            wine[i].toString();
        }


    }




}